import Vue from 'vue'
import Router from 'vue-router'

const _import = file => () => import('@/views/' + file + '.vue')

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/roomIndex'
    },
    {
      path: '/roomIndex',
      name: 'roomindex',
      component: _import('roomIndex/index')
    },
    {
      path: '/videoMeeting',
      name: 'videomeeting',
      component: _import('videoMeeting/index')
    },
    {
      path: '/audiomeeting',
      name: 'audiomeeting',
      component: _import('audioMeeting/index')
    }
  ]
})
